Update Root Password on Robot OS (Ubuntu 14.04 SquashFS)

1. Boot into Kali

Use Kali Linux with persistence via Ventoy. Make sure the persistence mode is working.

2. Mount the Robot’s Boot Partition

sudo mkdir -p /mnt/customos
sudo mount /dev/sda1 /mnt/customos

3. Extract the SquashFS Root

sudo unsquashfs /mnt/customos/main-*.sqsh

This will create a directory called squashfs-root/.

4. Chroot into the Extracted Root

sudo mount --bind /dev /squashfs-root/dev
sudo mount --bind /proc /squashfs-root/proc
sudo mount --bind /sys /squashfs-root/sys
sudo mount --bind /dev/pts /squashfs-root/dev/pts
sudo mount --bind /run /squashfs-root/run

sudo chroot squashfs-root /bin/bash

5. Change the Passwords

passwd       # Change root password
passwd st    # Optional: Change st user password

6. Exit and Unmount

exit
sudo umount /squashfs-root/dev/pts
sudo umount /squashfs-root/dev
sudo umount /squashfs-root/proc
sudo umount /squashfs-root/sys
sudo umount /squashfs-root/run

7. Repack the SquashFS

sudo mksquashfs squashfs-root/ main-updated.sqsh

Replace the original with your modified image:

sudo mv /mnt/customos/main-*.sqsh /mnt/customos/main-original-backup.sqsh
sudo mv main-updated.sqsh /mnt/customos/main-848ed7c330d4-1511805726.923211098.sqsh
← Back to Resources